package com.ae.shield.common.config;

import net.minecraftforge.common.ForgeConfigSpec;

public class Config {
    public static ForgeConfigSpec config;
    public static ForgeConfigSpec.BooleanValue ORE_GENERATE;
    public static ForgeConfigSpec.BooleanValue ORE_TIN;
    public static ForgeConfigSpec.BooleanValue ORE_LEAD;
    public static ForgeConfigSpec.BooleanValue ORE_ALUMINUM;
    public static ForgeConfigSpec.BooleanValue ORE_SILVER;
    public static ForgeConfigSpec.BooleanValue ORE_MANGANESE;
    public static ForgeConfigSpec.BooleanValue ORE_TANTALUM;

    public static ForgeConfigSpec.BooleanValue METAL_PROCESSING;

    static {
        ForgeConfigSpec.Builder COMMON_BUILDER = new ForgeConfigSpec.Builder();
        COMMON_BUILDER.comment("通用配置").push("general");
        ORE_GENERATE = COMMON_BUILDER.comment("控制生成矿物的总开关").define("ore_generate", true);
//        COMMON_BUILDER.comment("矿物生成").push("ore_generate");
        ORE_TIN = COMMON_BUILDER.comment("锡矿石").define("ore_tin", true);
        ORE_LEAD = COMMON_BUILDER.comment("铅矿石").define("ore_lead", true);
        ORE_ALUMINUM = COMMON_BUILDER.comment("铝矿石").define("ore_aluminum", true);
        ORE_SILVER = COMMON_BUILDER.comment("银矿石").define("ore_silver", true);
        ORE_MANGANESE = COMMON_BUILDER.comment("锰矿石").define("ore_manganese", true);
        ORE_TANTALUM = COMMON_BUILDER.comment("钽矿石").define("ore_tantalum", true);
//        COMMON_BUILDER.pop();
        METAL_PROCESSING = COMMON_BUILDER.comment("控制金属加工简单配方的总开关（板、粉等）").define("metal_processing", true);
        COMMON_BUILDER.pop();
        config = COMMON_BUILDER.build();
    }
}
